<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <title>散标内容页</title>
    <link rel="stylesheet" type="text/css" href="./css/api.css" />
    <link rel="stylesheet" type="text/css" href="./css/aui.css" />
    <link rel="stylesheet" type="text/css" href="./css/font-awesome.min.css" />
    <link rel="stylesheet" type="text/css" href="./css/style.css" />
    <script type="text/javascript" src="./script/api.js"></script>
    <script type="text/javascript" src="./script/aui-tab.js" ></script>
    <link rel="stylesheet" type="text/css" href="./css/aui-slide.css" />
    <script type="text/javascript" src="./script/aui-slide.js"></script>
    <script type="text/javascript" src="./script/base.js"></script>
    <script type="text/javascript" src="./script/doT.min.js"></script>
    <script type="text/javascript" src="./script/jquery-3.2.0.js"></script>
    <script type="text/javascript">
        function closeWin(){
            api.closeWin({
            });
        };
    </script>
</head>
<body>
    <!-- 头部 -->
    
    <header class="aui-bar aui-bar-nav">
        <a class="aui-pull-left aui-btn" onclick="closeWin()">
            <span class="aui-iconfont aui-icon-left"></span>
        </a>
        <div class="aui-title">安全保障</div>
    </header>

    <!-- <div class="licai-zhitou-btn aui-btn-info">请前往开通存管账户</div> -->
    
<!--     <div class="licai-record-d" id="weidenglu" onclick="weidenglu();">请登录</div>
    <div class="licai-record-d" id="weikaitong" style="display: none;" onclick="weikaitong();">请前往开通存管账户</div>
    <div class="licai-record-d" id="kegoumai" style="display: none;" onclick="kegoumai();">立即购买</div> -->
</body>



<script type="text/javascript">

    apiready = function(){

    }

    if ($api.getStorage('userid') == null || $api.getStorage('userid') == '') {
        $('#weikaitong').hide();
        $('#kegoumai').hide();
        $('#weidenglu').show();
    }else {
        if (!$api.getStorage('is_hrb')) {
            $('#weidenglu').hide();
            $('#kegoumai').hide();
            $('#weikaitong').show();
        }else {
            $('#weikaitong').hide();
            $('#weidenglu').hide();
            $('#kegoumai').show();
        }
    }

    // 未登录
    function weidenglu() {
        // 跳转登录页面
        api.openFrame({
            name: 'login',
            url: './login.html',
            rect: {
                x: 0,
                y: 0,
                w: 'auto',
                h: 'auto'
            },
            pageParam: {
                name: 'test'
            },
            bounces: false,
            bgColor: 'rgba(0,0,0,0)',
            vScrollBarEnabled: true,
            hScrollBarEnabled: true
        });
    }

    // 未开通
    function weikaitong() {
        // 跳转开通页面
        api.openFrame({
            name: 'bank',
            url: './bank.html',
            rect: {
                x: 0,
                y: 0,
                w: 'auto',
                h: 'auto'
            },
            pageParam: {
                name: 'test'
            },
            bounces: false,
            bgColor: 'rgba(0,0,0,0)',
            vScrollBarEnabled: true,
            hScrollBarEnabled: true
        });
    }

    // 可购买
    function kegoumai() {
        alert('maimaimai');
    }

</script>
</html>